From: Brion Vibber Date: Thu, 3 Mar 2011 02:10:38 +0000 (+0000) Subject: Add @fixme comments for undocumented options parameters X-Git-Tag: 1.31.0-rc.0~31681 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=8842ab1d0cef61890833cb0cf9a46ec334904a22;p=lhc%2Fweb%2Fwiklou.git Add @fixme comments for undocumented options parameters --- diff --git a/resources/jquery/jquery.textSelection.js b/resources/jquery/jquery.textSelection.js index d84a5c240a..db8c0953e3 100644 --- a/resources/jquery/jquery.textSelection.js +++ b/resources/jquery/jquery.textSelection.js @@ -34,6 +34,8 @@ getSelection: function() { * * Inserts text at the begining and end of a text selection, optionally * inserting text at the caret when selection is empty. + * + * @fixme document the options parameters */ encapsulateSelection: function( options ) { return this.each( function() { @@ -134,6 +136,8 @@ encapsulateSelection: function( options ) { * * Get the position (in resolution of bytes not nessecarily characters) * in a textarea + * + * @fixme document the options parameters */ getCaretPosition: function( options ) { function getCaret( e ) { @@ -217,6 +221,9 @@ encapsulateSelection: function( options ) { } return getCaret( this.get( 0 ) ); }, +/** + * @fixme document the options parameters + */ setSelection: function( options ) { return this.each( function() { if ( $(this).is( ':hidden' ) ) { @@ -258,6 +265,8 @@ setSelection: function( options ) { * position with setSelection() * @param options boolean Whether to force a scroll even if the caret position * is already visible. Defaults to false + * + * @fixme document the options parameters (function body suggests options.force is a boolean, not options itself) */ scrollToCaretPosition: function( options ) { function getLineLength( e ) {